//
//  ZYXHomeOneCell.m
//  RuiBeiKang
//
//  Created by iOS开发1 on 2019/1/3.
//  Copyright © 2019年 JW. All rights reserved.
//

#import "ZYXHomeOneCell.h"

@implementation ZYXHomeOneCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.imgWidth.constant = HEIGHT(45);
    self.labelTop.constant = HEIGHT(10);
}
//-(void)setModel:(ZYXHomeOneModel *)model{
//    _model = model;
//    self.imgView.image = [UIImage imageNamed:model.imgStr];
//    self.titleLabel.text = model.labelStr;
//}
-(void)setModel:(ZYXHomeComModel *)model{
        _model = model;
    ///图片地址
    [self.imgView sd_setImageWithURL:[NSURL URLWithString:kImgAllUrl(model.picUrl)] placeholderImage:IMG(@"imgLoading")];
    self.titleLabel.text = model.title;
}
@end
